package org.djw.user.service;

import org.djw.basic.service.IBaseService;
import org.djw.user.domain.User;
import org.djw.user.dto.UserDto;

/**
 * 业务层接口
 */
public interface IUserService extends IBaseService<User>{

    /**
     * 根据电话号码查询用户
     * @param phone
     * @return
     */
    User loadByphone(String phone);

    /**
     * 通过邮箱查询用户
     * @param email
     * @return
     */
    User loadByemail(String email);

    /**
     * 手机号注册
     * @param userDto
     */
    void phoneRegister(UserDto userDto);
}
